home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 015 / hp41cv.arc / LINK.TXT < prev    next >
Encoding:
Text File  |  1986-05-21  |  4.8 KB  |  106 lines

  1.                          STRAIGHTFORWARD
  2.  
  3.  
  4.  
  5.                        Uploading Programs
  6.                          From the HP41Cx
  7.                           To the IBM PC
  8.                      Using the HP LINK Card
  9.  
  10.  
  11. The link card from Hewlett-Packard is a plug-in card for IBM PCs
  12. or compatibles that adds an HP-IL interface to the computer.  The
  13. software that comes with the card, however, is designed to work 
  14. with the Portable (HP-110) or Portable-Plus lap-top computers.  
  15. There is a way for the HP41Cx to communicate with the PC for the  
  16. purpose of uploading HP-41 programs - however unfriendly.
  17.  
  18. One of the programs on the LINK Card diskette is called CS80.  
  19. This is the primary communications program.  When you install 
  20. the card and run this program you will be able to use two of the  
  21. three options on the menu:  PRINTER and DISPLAY.  The DRIVE 
  22. option does not work with the HP41Cx.    
  23.  
  24. The PRINTER option allows you to use the printer on the PC with 
  25. your HP-41Cx, using the PC as a dumb interface.  The  special 
  26. feature of HP printers, such as graphics, will not be available.   
  27.  
  28. The DISPLAY option allows you to use your PC as a video interface 
  29. (good for conserving printer paper).  Certain special HP 
  30. characters will display incorrectly on the PC.
  31.  
  32. Because the DRIVE option is not available to the HP41Cx, some 
  33. other way to get the programs into a file is necessary.   What we 
  34. will use is I/O REDIRECTION.  This is a fancy term for DETOUR.  
  35. We will simply route whatever is going to the display into a 
  36. file.  There are two unpleasant side affects to this.   One, 
  37. EVERYTHING goes to the file,  meaning that we will not be able to 
  38. monitor the activity.   The second side affect is garbage is 
  39. introduced into the file.   This is simple enough to fix with any 
  40. standard text editor.   Simply go into the file and remove what
  41. does not belong (note: if you have a time module installed in 
  42. your HP-41Cx, the time and date will also be transferred, remove 
  43. that, too).
  44. .paèHere are the step-by-step instructions for program transfer.  The 
  45. instructions are for a two drive system.  If you have a hard disk 
  46. then you'll have to slightly modify the steps.
  47.  
  48. 1. Install the Link card as per the Hewlett-Packard instructions.
  49. 2. Hook the HP41Cx to the Link card interface.  Do not place 
  50.    anything else on the loop.  
  51. 3. Place a diskette with CS80 in drive A and a blank, formatted 
  52.    disk in drive B.
  53. 4. At the DOS prompt type: CS80  >B:FILENAME.BTN  <carriage-
  54.    return>.   The file name is unimportant, as long as the 
  55.    extension is BTN.
  56. 5. Press the number '3' on the PC keyboard (don't worry that you 
  57.    can't see anything).
  58. 6. On the HP-41, type:   PRP "PROGNAME"  (XEQ ALPHA P R P ALPHA 
  59.    ALPHA P R O G N A M E ALPHA)
  60. 7. Sit back and wait for the program to transfer.  Every few 
  61.    seconds the disk light on the PC should flash for a moment.  
  62.    When the light stops flashing altogether (nothing for about 15 
  63.    to 30 seconds), the transfer is complete.
  64. 8. Press  'E' on the PC.  The file will be closed and you'll be 
  65.    returned to the DOS prompt.
  66. 9. Use a standard text editor to clean up the program file.   Do 
  67.    not use a text editor that places formatting characters in 
  68.    files.  If you use Wordstar, use the NON-DOCUMENT mode.
  69. 10. You have now transferred a program to the PC.  The next 
  70.    step is to compile the program.
  71.  
  72.  
  73.                Compiling Programs From a Text File
  74.  
  75. 1. Run the HP-41 emulator program.  
  76. 2. Using the menu command "C", select the correct drive and 
  77.    subdirectory that contains your uncompiled programs.
  78. 3. Press the  "!" character ( shift  1).  All uncompiled 
  79.    programs with the extension "BTN" will be displayed.
  80. 4. Use the cursor keys to select the desired program and press 
  81.    return.  The program will now be compiled.
  82. 5. If the program compiles without error,  you will be placed in 
  83.    the calculator mode.  Press the [F2] key to exit back to the 
  84.    menu.
  85. 6. Press "S" to save your compiled program.
  86. 7. If you received a SYNTAX ERROR you must exit out of the 
  87.    emulator and investigate the program with a text editor.
  88. 8. To toggle back to displaying compiled programs, press "!" a 
  89.    second time.
  90.  
  91.  
  92. Things to look for:
  93.  
  94. XROM ##.##  If you have removed a module, this may be displayed
  95.             instead of the function name.  Replace ALL XROM 
  96.             numbers with the proper function name.
  97.  
  98. Synthetics  Synthetics are not supported.  If the program 
  99.             contains such statements as STO M, you must rewrite
  100.             the program to remove them.  Synthetic characters
  101.             will usually transfer correctly.  Some characters
  102.             have a different code number and thus display as 
  103.             something else.
  104.  
  105. Garbage     If the file is not properly cleaned, some text 
  106.             garbage may cause a SYNTAX ERROR.